/*
 * Message.java
 * business
 *
 * Created by ChenTao on 2017/6/27.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.data.bean;

import com.google.gson.annotations.SerializedName;

/**
 * 消息中心,消息
 * <p>
 * Created by ChenTao(chentao7v@gmail.com) on 2017-06-27 9:25
 */
public class Message {

    @SerializedName("msg_id")
    private String msgId;

    @SerializedName("title")
    private String title;

    @SerializedName("content")
    private String content;

    @SerializedName("is_read")
    private int isRead;

    @SerializedName("add_time")
    private String addTime;

    @SerializedName("order_id")
    private String orderId;

    @SerializedName("type")
    private String type;

    @SerializedName("url")
    private String url;

    @SerializedName("icon")
    private String icon;

    @SerializedName("article_id")
    private String articleId;

    @SerializedName("article_thumb")
    private String articleThumb;

    @SerializedName("is_pay")
    private int isPay;

    @SerializedName("rec_id")
    private String recId;

    @SerializedName("want_id")
    private String wantId;

    private boolean read;

    private boolean pay;

    public String getWantId() {
        return wantId;
    }

    public void setWantId(String wantId) {
        this.wantId = wantId;
    }

    public String getRecId() {
        return recId;
    }

    public void setRecId(String recId) {
        this.recId = recId;
    }

    public boolean isPay() {
        return isPay == 1;
    }

    public void setPay(boolean pay) {
        isPay = pay ? 1 : 0;
    }

    int getIsPay() {
        return isPay;
    }

    void setIsPay(int isPay) {
        this.isPay = isPay;
    }

    public boolean isRead() {
        return isRead == 1;
    }

    public void setRead(boolean read) {
        isRead = read ? 1 : 0;
    }

    public String getArticleThumb() {
        return articleThumb;
    }

    public void setArticleThumb(String articleThumb) {
        this.articleThumb = articleThumb;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    int getIsRead() {
        return isRead;
    }

    void setIsRead(int isRead) {
        this.isRead = isRead;
    }

    public String getAddTime() {
        return addTime;
    }

    public void setAddTime(String addTime) {
        this.addTime = addTime;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getArticleId() {
        return articleId;
    }

    public void setArticleId(String articleId) {
        this.articleId = articleId;
    }

    public interface Type {
        /**
         * 代理商订单
         */
        String ORDER_AGENT = "order_agent";

        /**
         * 普通订单
         */
        String ORDER = "order";

        /**
         * 优惠券列表
         */
        String BONUS = "bonus";

        /**
         * 红包
         */
        String RED_PACKET = "red_paper";

        /**
         * 系统
         */
        String SYSTEM = "system";

        /**
         * 活动
         */
        String ACTIVITY = "activity";

        /**
         * 文章
         */
        String ARTICLE = "article";

        /**
         * 报名订单
         */
        String ACTIVITY_ORDER = "activity_order";

        String ORDER_PAY = "order_pay";

        String OFFER = "offer";
    }

}
